require '~coffee/init'
if not process.env.DEBUG
    $ ->
        window.navigator.serviceWorker.register('/sw.js')

import Vue from "vue"
Vue.directive('focus', {
    inserted:  (el) ->
        el.focus()
        return
})

Vue.use(require('~coffee/_lib/route'))

window.VUE = new Vue({
    router: GO
}).$mount('#VUE')


#beforeRouteEnter:(from, to, next)->
#    next()
